<@override name="project">
 ${project.name}
</@override>
<@override name="styles">
</@override>
<@override name="toolbar">
</@override>
<@override name="main">
<div id="warp">
    <div class="outer">
        <table class="cont-rt5">
            <tbody>
            <tr valign="top">
                <td>
                    <fieldset class="h-135px">
                        <legend class="legend">描述</legend>
                        <div class="content">
                            访问地址：<span id="url"><a href="${project.url}">${project.url}</a> </span><br/><br/>
                            项目描述：<span id="description">${project.description}</span>
                        </div>
                    </fieldset>
                </td>
                <td class="divider"></td>
                <td rowspan="3" class="td_box_panel">
                    <fieldset class="w">
                        <legend class="legend">最新问题</legend>
                        <div id="featurebar">
                            <div class="f-right">
                                <span id="bymoduleTab"  class="active"><a href="<@s.url '/project/issue/add/'/>${project.code}">新建反馈</a></span> |
                                <span id="noleftTabl"><a href="<@s.url '/project/milestone/list/'/>${project.code}">项目里程碑列表</a></span>
                            </div>
                        </div>
                        <div class="content">
                            <ul>
                                <#list issues as issue>
                                    <li><a href="#">${issue.reporter}</a>&nbsp;&nbsp;提出了个新的&nbsp;&nbsp;<a href="#">[${issue.description}]</a>&nbsp;&nbsp;--<a href="<@s.url '/project/issue/view/'/>${issue.pkey}/${project.id}">${issue.summary}</a><p>${issue.created?string("yyyy-MM-dd HH:mm:ss")}</li>
                                  </#list>
                            </ul>
                        </div>
                    </fieldset>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <fieldset class="h-135px">
                        <legend class="legend">反馈问题跟踪</legend>
                            <div id="issue_counts" class="content">
                                <div id="first_line" class="relative">
                                       <span class="ab-0"><a href="#">建议</a></span>
                                       <span class="ab-50">打开<span id="suggestion_open_counts"></span>/<span id="suggestion_counts"></span></span>
                                       <span class="ab-400"><a href="#">错误</a></span>
                                       <span class="ab-450">打开<span id="wrong_open_counts" ></span>/<span id="wrong_counts"> </span> </span>
                                </div>
                               <div id="second_line"class="relative">
                                     <span class="ab-0"><a href="#">需求</a></span>
                                     <span class="ab-50">打开<span id="requirement_open_counts"></span>/<span id="requirement_counts"></span></span>
                                     <span class="ab-400"><a href="#">其他</a></span>
                                     <span class="ab-450">打开<span id="other_open_counts"></span>/<span id="other_counts"></span></span>
                               </div>
                            </div>
                            <div id="issue_milestone">
                                <a href="<@s.url '/project/issue/list/'/>${project.code}">查看所有问题</a> | <a href="<@s.url '/project/milestone/list/'/>${project.code}">里程碑列表</a>
                             </div>
                    </fieldset>
                </td>
            </tr>
            <tr>
                <td valign="top" >
                    <fieldset class="h-135px">
                        <legend class="legend">项目成员</legend>
                        <div class="content">
                            负责人：<span id="leader">${leader[0]}</span><br/><br/>
                            项目成员： <#list accounts as account>
                                                     ${account.name}&nbsp;&nbsp;&nbsp;&nbsp;
                                                </#list>
                        </div>
                    </fieldset>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</@override>
<@override name="scripts">
<script type="text/javascript">
var project_id = ${project.id};
var js_param = {
    issue_counts_url: '<@s.url '/issue/issue_counts/'/>'
}
</script>

<script type="text/javascript" src="<@s.url '/resources/scripts/project/p_dashboard.js'/>"></script>
</@override>
<@extends name="/common/projectlayout1.1.ftl" current="p_dashboard" title="home.dashboard" code= "${project.code}"></@extends>